package edu.uwo.se2.group3mapapp;

public class Friend {
	int friendId;
	String friendUsername;
	int state;
	
	@Override
	public String toString() {
		return "Friend [friendId=" + friendId + ", friendUsername="
				+ friendUsername + ", state=" + state + "]";
	}
	
	public String state() {
		if (state == 0) {
			return " (requests your friendship)";
		} else if (state == -1){
			return " (pending request)";
		} else if (state == 1){
			return " (already friends)";
		} else {
			return "";
		}
	}
}
